package org.zhb.sql.query.sys.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;
import org.springframework.stereotype.Service;
import org.zhb.sql.query.model.Role;
import org.zhb.sql.query.sys.repository.RoleRepository;
import org.zhb.sql.query.sys.service.RoleService;

@Service
public class RoleServiceImpl implements RoleService {
	@Autowired
	private RoleRepository roleRepository;

	@Override
	public Role findById(String id) {
		return null;
	}

	@Override
	public List<Role> findAll(Role model) {
		return null;
	}

	@Override
	public void save(Role t) {

	}

	@Override
	public void update(Role t) {

	}

	@Override
	public void delete(String id) {

	}

	@Override
	public Page<Role> selectModelByCondition(PageRequest pageRequest) {
		return roleRepository.findAll(null, pageRequest);
	}
}
